<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <head th:replace="common/head"/>
</head>
<body>
<div class="x-body">
    <form class="layui-form layui-form-pane">
        <input type="hidden" name="id" th:value="${myEntity.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">大小</label>
            <div class="layui-input-block">
                <input type="text" name="size" lay-verify="required|checkInt" placeholder="生成二维码大小，填正整数" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" style="margin-left:200px;" lay-submit lay-filter="specialSubmit">生成二维码</button>
            </div>
        </div>
    </form>
</div>
<div th:replace="common/js"></div>
<div th:replace="common/setting"></div>
<script type="text/javascript">
    layui.use(['layer', 'form'], function(){
        var $ = layui.jquery,
            form = layui.form;
        form.on('submit(specialSubmit)', function(data){
            let values = data.field
            location.href = "doQrCode?id=" +values.id+'&size='+values.size;
            return false;
        });
    });
</script>
</body>
</html>
